<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="<%=request.getContextPath()%>/static/common/plugin/Uimaker/css/style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="<%=request.getContextPath() %>/static/common/plugin/bootstrap-3.3.5/css/bootstrap.min.css">
</head>
<body>
<c:if test="${empty pagemodel }">
<script>
	setTimeout(function() {
		location = '<%=request.getContextPath()%>/ApplicationServlet?command=list';
	}, 0);
</script>			
</c:if>
<c:if test="${!empty pagemodel }">
<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">求职信息查询</a></li>
    </ul>
    </div>
<table class="table">
	<caption>
		<strong>一、求职信息：</strong>
			
	</caption>
	<thead>
	<tr>
    <th ><center>编号</center></th>
    <th ><center>求职工作名称</center></th>
    <th ><center>求职公司名称</center></th>
    <th ><center>求职情况</center></th>
     <th ><center>求职申请时间</center></th>
      <th ><center>求职处理时间</center></th>
    </tr>
	</thead>
	<tbody>
		<c:forEach items="${pagemodel.list }" var="application" varStatus="v">
 <tr>
 <td><center>${v.count }</center></td>
 <td><center>${application.position$name }</center></td>
 <td><center>${application.company$name }</center></td>
 <td><center>${application.statues }</center></td>
 <td><center><fmt:formatDate value="${application.appTime }" pattern="yyyy-MM-dd HH:mm:ss"/></center></td>
 <td><center><fmt:formatDate value="${application.handleTime }" pattern="yyyy-MM-dd HH:mm:ss"/></center></td>
  </tr>
</c:forEach>
	</tbody>
	<tr>
<td colspan="6" align="right">
<a href="<%=request.getContextPath()%>/ApplicationServlet?command=list&pageNo=${pagemodel.first}">首页</a>&nbsp;
<a href="<%=request.getContextPath()%>/ApplicationServlet?command=list&pageNo=${pagemodel.pre}">上一页</a>&nbsp;
<a href="<%=request.getContextPath()%>/ApplicationServlet?command=list&pageNo=${pagemodel.next}">下一页</a>&nbsp;
<a href="<%=request.getContextPath()%>/ApplicationServlet?command=list&pageNo=${pagemodel.last}">尾页</a>&nbsp;
共${pagemodel.totalpage }页&nbsp;
共${pagemodel.allRecords }条记录

</table>



</c:if>
</body>

</html>